trigger PartsInvoiceApplicationTrigger on PartsInvoiceApplication__c(before update,before insert,after update   ) {
    
    if(trigger.isAfter && trigger.isUpdate) PartsLendingApplicationUtil.partsInvoiceBackToDetails(trigger.new , trigger.oldMap);

    if(trigger.isBefore && (trigger.isUpdate || trigger.isInsert))PartsLendingApplicationUtil.bringToCredit(trigger.new );
}